package com.example.testapp.activity.activity.read;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.example.testapp.R;

/**
 * Created by l on 2016/7/31.
 */
public class ListViewActivity extends AppCompatActivity {


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list_view);

        initView();
    }

    public void btnView(View view) {
        startActivity(new Intent(this, DragViewTestActivity.class));
    }

    public void btnViewGroup(View view) {
        startActivity(new Intent(this, DragViewGroupTestActivity.class));
    }

    private void initView() {
        findViewById(R.id.BtnList).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(ListViewActivity.this, ListViewGroupTestActivity.class));
            }
        });

        findViewById(R.id.BtnTest).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(ListViewActivity.this, ViewTestActivity.class));
            }
        });
    }
}
